-
Home
-
Shield: Blocks Bots, Protects Users, and Prevents Security Breaches
-
20.0.4
-
Code
-
Classes
- ApiTokenManager
| Total Complexity |
24 |
| Dependencies |
3 |
| Dependents |
1 |
| Total lines |
123 |
| Lines of code |
86 |
| Logical lines of code |
36 |
| Comment lines |
14 |
| Methods |
14 |
| Properties |
1 |
Methods 14
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| getToken() |
S |
52 |
6 |
25 |
| run() |
S |
61 |
3 |
14 |
| canRequestNewToken() |
S |
69 |
3 |
7 |
| hasToken() |
S |
77 |
2 |
3 |
| loadToken() |
S |
65 |
1 |
9 |
| getCanRequestOverride() |
S |
82 |
1 |
3 |
| getExpiresAt() |
S |
80 |
1 |
3 |
| getNextAttemptAllowedFrom() |
S |
80 |
1 |
3 |
| getPreviousAttemptAt() |
S |
80 |
1 |
3 |
| isExpired() |
S |
80 |
1 |
3 |
| isNearlyExpired() |
S |
79 |
1 |
3 |
| storeToken() |
S |
79 |
1 |
3 |
| clearToken() |
S |
81 |
1 |
3 |
| setCanRequestOverride() |
S |
77 |
1 |
4 |